<?php
namespace app\admin\validate;


use think\Validate;

class Auth extends Validate
{
    protected $rule = [
        'auth_name' => ['require'],
        'controller' => ['require'],
        'action' => ['require'],
        'status' => 'in:0,1'
    ];

    protected $message = [
        'role_name.require' => '角色名不能为空!',
        'controller.require' => '控制器名不能为空!',
        'action.require' => '方法名不能为空!'
    ];

}